<?php

class JedimusicPDO extends PDO
{
    static private $instance;
    
    public function __construct() {
        parent::__construct(
                            'mysql:host='.HOST_NAME.';dbname='.DB_NAME,
                            DB_USER,
                            DB_PASSWORD
                            );
    }
    
    public static function getInstance() {
        if (!self::$instance) {
            self::$instance = new JedimusicPDO();
        }
        return self::$instance;
    }
}
?>

